/* Base styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: url('../images/login-bg.jpg') no-repeat center center fixed; /* 添加背景图片 */
    background-size: cover;
    color: #333;
}

/* Navbar styles */
.navbar {
    background-color: #333;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center; /* 导航栏内容居中 */
    align-items: center;
}

.navbar a {
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 0 10px; /* 增加链接之间的间距 */
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 60px auto; /* 考虑到固定顶部导航栏的高度 */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Heading styles */
h1, h2, h3 {
    color: #333;
    margin-bottom: 20px;
}

/* User table styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.user-table .edit-btn,
.user-table .delete-btn {
    padding: 4px 10px;
    margin-right: 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.user-table .edit-btn {
    background-color: #28a745;
    color: white;
}

.user-table .edit-btn:hover {
    background-color: #218838;
}

.user-table .delete-btn {
    background-color: #dc3545;
    color: white;
}

.user-table .delete-btn:hover {
    background-color: #c82333;
}

/* Form styles */
#userForm {
    margin-top: 20px;
}

#userForm div {
    margin-bottom: 10px;
}

#userForm label {
    display: inline-block;
    width: 80px;
    text-align: right;
}

#userForm input {
    padding: 5px;
    width: calc(100% - 100px);
}

#userForm button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#userForm button:hover {
    background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .user-table table {
        font-size: 14px;
    }

    #userForm label {
        width: 60px;
    }

    #userForm input {
        width: calc(100% - 70px);
    }
}
